package com.zyong.design.pattern.decorator.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: ConcreteDecorator
 * @author: zyong
 * @create: 2024-04-27 23:52
 */
public class ConcreteDecorator extends Decorator {
    public ConcreteDecorator(Component component) {
        super(component);
    }

    @Override
    public void operate() {
        System.out.println("Decorator增强代码start");
        super.operate();
        System.out.println("Decorator增强代码end");
    }
}
